﻿<%@ Page Title="Downloads | Hardwares-R-Us" Language="C#" MasterPageFile="~/Main.Master"
    AutoEventWireup="true" CodeBehind="Downloads.aspx.cs" Inherits="WDTAsg2.Member.Downloads"
    Theme="Normal_User_Theme" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Downloads | Hardware-R-Us</title>
    </head>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <h1>
        Download Locator</h1>
    <p>
        With the download locator below you can quickly find your product and see all its
        details</p>
    <p>
        <asp:DropDownList ID="dDListPCat" runat="server" Height="17px" Width="166px" AutoPostBack="True"
            OnSelectedIndexChanged="dDListPCat_SelectedIndexChanged" DataTextField="Description"
            DataValueField="CategoryID" Style="margin-bottom: 0px">
        </asp:DropDownList>
        <asp:DropDownList ID="dDListCat" runat="server" Height="17px" Width="166px" AutoPostBack="True"
            OnSelectedIndexChanged="dDListCat_SelectedIndexChanged" DataTextField="Description"
            DataValueField="CategoryID" Style="margin-bottom: 0px" Visible="False">
        </asp:DropDownList>
        &nbsp;<asp:DropDownList ID="dDListModel" runat="server" AutoPostBack="True" OnSelectedIndexChanged="dDListModel_SelectedIndexChanged"
            DataTextField="Title" DataValueField="DownloadId" Visible="False">
        </asp:DropDownList>
        &nbsp;</p>
    <p>
        <asp:ListView runat="server" ID="lvDownloads">
            <LayoutTemplate>
                <table clientidmode="Static" runat="server" id="tblDownloads">
                    <tr id="Tr1" runat="server">
                        <th id="Th2" runat="server">
                            Title
                        </th>
                        <th id="Th3" runat="server">
                            Description
                        </th>
                        <th id="Th5" runat="server">
                            Action
                        </th>
                    </tr>
                    <tr runat="server" id="itemPlaceholder" />
                </table>
            </LayoutTemplate>
            <ItemTemplate>
                <tr id="Tr1" runat="server">
                    <td id="Td1" runat="server">
                        <%-- Data-bound content. --%>
                        <asp:Label ID="NameLabel" runat="server" Text='<%#Eval("Title") %>' />
                    </td>
                    <td id="Td2" runat="server">
                        <%-- Data-bound content. --%>
                        <asp:Label ID="Label1" runat="server" Text='<%#Eval("Description") %>' />
                    </td>
                    <td id="Td3" runat="server">
                        <%-- Data-bound content. --%>
                        <asp:Button ID="Button1" runat="server" Text="Download" />
                        <div id="tocp">
                            <asp:Panel ID="tocPanel" ClientIDMode="Inherit" CssClass="tocCss" SkinID="toc" runat="server"
                                Style="display: none;">
                                </h1>Are you sure you want to Download this file?</h1>
                                <asp:TextBox ID="terms" ClientIDMode="Static" runat="server" TextMode="MultiLine"
                                    ReadOnly="true" ViewStateMode="Inherit">

TERMS OF AGREEMENT
 
Welcome to our Corporate Website. This Agreement contains the complete terms and conditions that apply when you visit our site or use choose to browse the contents herein. By using this Web site, you agree to be bound by its terms of use and shall comply thereof. This Agreement describes and encompasses the entire agreement between us and you, and supersedes all prior or contemporaneous agreements, representations, warranties and understandings with respect to the Site and the content provided by or through the Site, and the subject matter of this Agreement.
 
Editing, Deleting and Modification
 
We may edit, delete or modify any of the terms and conditions contained in this Agreement, at any time and in our sole discretion, by posting a notice or a new agreement on our site. YOUR CONTINUED VISIT IN OUR WEBSITE FOLLOWING OUR OSTING OF A CHANGE NOTICE OR NEW AGREEMENT ON OUR SITE WILL CONSTITUTE BINDING ACCEPTANCE OF THE CHANGE.
 
Accuracy, Completeness and Timeliness of Information
Hardwares-R-Us is not responsible if information made available on this site is not accurate, complete or current. The material on this site is provided for general information only and should not be relied upon or used as the sole basis for making decisions without consulting primary, more accurate, more complete or more timely sources of information. Any reliance on the material on this site is at your own risk. This site may contain certain historical information which are definitely not current and is provided for reference only. We reserve the right to modify the contents of this site at any time without obligation on our end to update any information on the site. You understand and agree that it is your responsibility to monitor changes to the site.

 
LICENSE AND SITE ACCESS
Hardwares-R-Us grants you a limited license to access and make personal use of this site and not to download or modify it, or any portion of it, except with express written consent from our company. This site or any portion of this site may not be reproduced, duplicated, copied, sold, resold, visited, or otherwise exploited for any commercial purpose without express written consent from our company.
The right to access our corporate website does not include any resale or commercial use of our site or its contents nor allows you to download or copy any account information for the benefit of another merchant.
Any unauthorized use terminates the permission or license granted by Hardwares-R-Us.
 
PRODUCT PRICING & DESCRIPTIONS
The List Price displayed for products on our website represents the full retail price listed on the product itself. The List Price is a comparative price estimate and may or may not represent the prevailing price in every area on any particular day. For certain items that are offered as a set, the List Price may represent "open-stock" prices, which means the aggregate of the manufacturer's estimated or suggested retail price for each of the items included in the set. In cases of mispriced in our catalogs in which the item's correct price is higher than our stated price, we will, at our discretion, either contact you for instructions before shipping or cancel your order and notify you of such cancellation.
We do not warrant that product descriptions or other content of this site is accurate, complete, reliable, current, or error-free. If a product offered in our website is not as described, your sole remedy is to return it in unused condition.

 
LINKs & FRAMINGS
You shall not use our company logo or other proprietary graphic to link to this Site without the express written permission of Hardwares-R-Us. Further, you may not frame any trademark, logo or other proprietary information, including the Images Content, without our express written consent.
We make no claim or representation regarding, and accepts no responsibility for, directly or indirectly, the quality, content, nature or reliability of third-party websites accessible by hyperlink from the Site, or websites linking to the Site. Such sites are not under the control of our company and we shall not responsible for the contents of any linked site or any link contained in a linked site, or any review, changes or updates to such sites. You hereby acknowledge and agree that we are not responsible for the availability of such external websites or resources, its content, including, without limitation, any link contained in such content, or any changes or updates to such content. If you decide to access links to third-party Web sites, you do so at your own risk. Any concerns regarding any external link should be directed to the relevant site administrator or web master.

 
DISCLAIMERS
YOUR USE OF THIS SITE IS AT YOUR SOLE RISK. THE SITE IS PROVIDED ON AN "AS IS" AND "AS AVAILABLE" BASIS. WE RESERVE THE RIGHT TO RESTRICT OR TERMINATE YOUR ACCESS TO THE SITE OR ANY FEATURE OR PART THEREOF AT ANY TIME. Hardwares-R-Us EXPRESSLY DISCLAIMS ALL WARRANTIES OF ANY KIND, WHETHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AND ANY WARRANTIES THAT MATERIALS ON THE SITE ARE NONINFRINGING, AS WELL AS WARRANTIES IMPLIED FROM A COURSE OF PERFORMANCE OR COURSE OF DEALING; THAT ACCESS TO THE SITE WILL BE UNINTERRUPTED OR ERROR-FREE; THAT THE SITE WILL BE SECURE; THAT THE SITE OR THE SERVER THAT MAKES THE SITE AVAILABLE WILL BE VIRUS-FREE; OR THAT INFORMATION ON THE SITE WILL BE COMPLETE, ACCURATE OR TIMELY. IF YOU DOWNLOAD ANY MATERIALS FROM THIS SITE, YOU DO SO AT YOUR OWN DISCRETION AND RISK. YOU WILL BE SOLELY RESPONSIBLE FOR ANY DAMAGE TO YOUR COMPUTER SYSTEM OR LOSS OF DATA THAT RESULTS FROM THE DOWNLOAD OF ANY SUCH MATERIALS. NO ADVICE OR INFORMATION, WHETHER ORAL OR WRITTEN, OBTAINED BY YOU FROM GE OR THROUGH OR FROM THE SITE SHALL CREATE ANY WARRANTY OF ANY KIND. GE DOES NOT MAKE ANY WARRANTIES OR REPRESENTATIONS REGARDING THE USE OF THE MATERIALS ON THIS SITE IN TERMS OF THEIR COMPLETENESS, CORRECTNESS, ACCURACY, ADEQUACY, USEFULNESS, TIMELINESS, RELIABILITY OR OTHERWISE.

 
CORPORATE INTELLECTUAL PROPERTY RIGHTS
You hereby acknowledge that all rights, titles and interests, including but not limited to rights covered by the Intellectual Property Rights, in and to the site, and that You will not acquire any right, title, or interest in or to the site except as expressly set forth in this Agreement. You will not modify, adapt, translate, prepare derivative works from, decompile, reverse engineer, disassemble or otherwise attempt to derive source code from any of our services, software, or documentation, or create or attempt to create a substitute or similar service or product through use of or access to the Program or proprietary information related thereto.

 
Confidentiality
You agree not to disclose information you obtain from us and or from our clients, advertisers, suppliers and forum members. All information submitted to by an end-user customer pursuant to a Program is proprietary information of Hardwares-R-Us. Such customer information is confidential and may not be disclosed. Publisher agrees not to reproduce, disseminate, sell, distribute or commercially exploit any such proprietary information in any manner.

 
NON-ASSIGNMENT OF RIGHTS
Your rights of whatever nature cannot be assigned nor transferred to anybody, and any such attempt may result in termination of this Agreement, without liability to us. However, we may assign this Agreement to any person at any time without notice.

 
NON-Waiver
Failure of the Hardwares-R-Us to insist upon strict performance of any of the terms, conditions and covenants hereof shall not be deemed a relinquishment or waiver of any rights or remedy that the we may have, nor shall it be construed as a waiver of any subsequent breach of the terms, conditions or covenants hereof, which terms, conditions and covenants shall continue to be in full force and effect.
No waiver by either party of any breach of any provision hereof shall be deemed a waiver of any subsequent or prior breach of the same or any other provision.

 
Severability of Terms
In the event that any provision of these Terms and Conditions is found invalid or unenforceable pursuant to any judicial decree or decision, such provision shall be deemed to apply only to the maximum extent permitted by law, and the remainder of these Terms and Conditions shall remain valid and enforceable according to its terms.

 
Entire Agreement
This Agreement shall be governed by and construed in accordance with the substantive laws of RMIT, Melbourne, Australia, without any reference to conflict-of-laws principles. The Agreement describes and encompasses the entire agreement between us and you, and supersedes all prior or contemporaneous agreements, representations, warranties and understandings with respect to the Site, the contents and materials provided by or through the Site, and the subject matter of this Agreement.

 
GOVERNING LAW
Any dispute, controversy or difference which may arise between the parties out of, in relation to or in connection with this Agreement is hereby irrevocably submitted to the exclusive jurisdiction of the courts of RMIT, Melbourne, Australia, to the exclusion of any other courts without giving effect to its conflict of laws provisions or your actual state or country of residence. 
                   
                                </asp:TextBox>
                                <br />
                                <br />
                                <div id="lnks">
                                    <asp:HyperLink ID="downlnk" runat="server" ClientIDMode="Static" NavigateUrl='<%#Eval("DownloadUrl") %>'>I Agree and Download </asp:HyperLink>
                                    <asp:HyperLink ID="disagree" runat="server">I Disagree </asp:HyperLink>
                                </div>
                            </asp:Panel>
                        </div>
                        <%--<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#Eval("DownloadUrl") %>'>Download</asp:HyperLink>--%>
                    </td>
                </tr>
                <asp:ModalPopupExtender ID="Button1_ModalPopupExtender" runat="server" Enabled="True"
                    TargetControlID="Button1" CancelControlID="disagree" PopupControlID="tocPanel"
                    BackgroundCssClass="modalBackground">
                </asp:ModalPopupExtender>
            </ItemTemplate>
        </asp:ListView>
    </p>
    <p>
        <h2>
            Upload a driver</h2>
        <table>
            <form>
            <tr>
                <td>
                    <asp:Label ID="Label2" runat="server" Text="Title:"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtDriverTitle" runat="server" Width="137px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtDriverTitle"
                        ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label3" runat="server" Text="Description:"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtDriverDesc" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtDriverDesc"
                        ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label4" runat="server" Text="Category:"></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="ddlDriverPCat" runat="server" AutoPostBack="True" DataTextField="Description"
                        DataValueField="CategoryId" OnSelectedIndexChanged="ddlDriverPCat_SelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="ddlDriverPCat"
                        ErrorMessage="*" ValidationExpression="\d"></asp:RegularExpressionValidator>
                    <asp:DropDownList ID="ddlDriverCat" runat="server" DataTextField="Description" DataValueField="CategoryId"
                        OnSelectedIndexChanged="ddlDriverCat_SelectedIndexChanged" Visible="False">
                    </asp:DropDownList>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="ddlDriverCat"
                        ErrorMessage="*" ValidationExpression="\d"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label5" runat="server" Text="File"></asp:Label>
                </td>
                <td>
                    <asp:FileUpload ID="FileUpload1" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblUpload" runat="server"></asp:Label>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="FileUpload1"
                        ErrorMessage="Choose a file"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Button ID="btnUpload" runat="server" Text="Upload" />
                </td>
            </tr>
            </form>
        </table>
    </p>
    <br />
    </html>
</asp:Content>
